package com.sss.hloster06;

import java.util.Scanner;

public class JavaExercise34 {

	public static void main(String[] args) {
		test34();
	}

	/**
	 * 输入3个数a,b,c，按大小顺序输出
	 */
	private static void test34() {
		Scanner input = new Scanner(System.in);
		System.out.print("輸入数  a:");
		int a = input.nextInt();
		System.out.print("输入数  b:");
		int b =  input.nextInt();
		System.out.print("输入数 c:");
		int c =  input.nextInt();
		if (a >= b) {
			if (a >= c) {
				if (b >= c) {
					System.out.println(a + "  " + b + "  " + c);
				} else {
					System.out.println(a + "  " + c + "  " + b);
				}
			} else {
				System.out.println(c + "  " + a + "  " + b);
			}
		} else {
			if (a >= c) {
				System.out.println(b + "  " + a + "  " + c);
			} else {
				if (b >= c) {
					System.out.println(b + "  " + c + "  " + a);
				} else {
					System.out.println(c + "  " + b + "  " + a);
				}
			}
		}
	}
}
